package com.cqupt.scanning.system.statistics.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cqupt.scanning.system.statistics.entity.CalculatedDataFoot1;
import com.cqupt.scanning.system.statistics.mapper.CalculatedDataFoot1Mapper;
import com.cqupt.scanning.system.statistics.service.CalculatedDataFoot1Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cqupt.scanning.system.utils.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 特征数据 服务实现类
 * </p>
 *
 * @author 宋宝梁
 * @since 2021-11-19
 */
@Service
public class CalculatedDataFoot1ServiceImpl extends ServiceImpl<CalculatedDataFoot1Mapper, CalculatedDataFoot1> implements CalculatedDataFoot1Service {
    @Autowired
    private CalculatedDataFoot1Service calculatedDataFoot1Service;

    @Override
    public R queryExcelCount(String beginTime, String endTime) {
        QueryWrapper<CalculatedDataFoot1> wrapper = new QueryWrapper<CalculatedDataFoot1>().ge("create_time", beginTime).le("create_time", endTime);
        List<CalculatedDataFoot1> list = calculatedDataFoot1Service.list(wrapper);
        return R.ok().data("excelFootCounts",list);
    }

}
